loginApp.factory("configureService", function($resource) {
    return $resource("/api2/collections/configures/:id", {
        id: "@_id"
    }, {
        'create': {
            method: 'POST'
        },
        'query': {
            method: 'GET',
            isArray: true
        },
        'get': {
            method: 'GET',
            isArray: false
        },
        'update': {
            method: 'PUT'
        },
        'destroy': {
            method: 'DELETE'
        }
    });
});